import {getRequest, postRequest} from "@/api/axios";

export const doGetOrders = (pageNum,pageSize)=>getRequest('orders/getOrders',{pageNum,pageSize});

export const doGetAllOrders = ()=>getRequest('orders/getAllOrders',{});

export const doGetOrdersbyid = (sid)=>getRequest('orders/getOrdersById',{sid});

export const doCreateOrder = (order)=>postRequest('orders/createOrder',order);

export const doPayOrder = (orderId)=>getRequest('orders/payOrder', {orderId});
